import BaseFlowNode from '../BaseFlowNode'
import {assignInWith} from 'lodash'
import {FlowNodeType} from "../../types/index";
import type {FlowNodePropsType,FlowNodeFormConfigType} from "../../types/index";

export default class EndNode extends BaseFlowNode {
    constructor(props:Partial<FlowNodePropsType>={}) {
      let basePops:FlowNodePropsType={
        header: { icon: 'icon-liuchengjieshu', title: '流程结束', bgColor: '#cacaca',color:'white' },
        description: '流程到本节点结束'
    }
        super(
            '结束节点',
            FlowNodeType.END,
            assignInWith(basePops,props),
            {}
        )
    }
}
